Create a user who cannot ssh login sftpuser1, password for SFTP login:sudo adduser sftpuser1--home/sftp/sftpuser1--shell/bin/falseRun command Edit file sudo vi/etc/ssh/sshd_configOn the subsystem Sftp/usr/lib/openssh/sftp-server modified to subsystem sftp INTERNAL-
1. Create a new user and set a password
> Useradd suser
> passwd suser//Enter password
2. Set up sshd configuration file
> cd/etc/ssh/
> CP sshd_config sshd_config.back//Backup
> VI sshd_config
Note If the line does not comment it will error
#Subsystem Sftp/usr/libexec/openssh/sftp-server
subsystem SFTP INTERNAL-SFTP
We sometimes encounter the need to restrict a Linux user to add, modify, delete only in the specified directory, and only use SFTP to log on to the server, not SSH operation. These can be implemented by configuring the SFTP service.There are vsftpd and internal-sftp for the SFTP
We sometimes encounter the need to restrict a Linux user to add, modify, delete only in the specified directory, and only use SFTP to log on to the server, not SSH operation. These can be implemented by configuring the SFTP service.There are vsftpd and internal-sftp for the SFTP
We sometimes encounter the need to restrict a Linux user to add, modify, delete only in the specified directory, and only use SFTP to log on to the server, not SSH operation. These can be implemented by configuring the SFTP service.There are vsftpd and internal-sftp for the SFTP
The company is based on security considerations, required to give users SFTP,SCP permissions can upload relevant files to the specified directory, but not SSH login, considering RSSH is also a solution, but a little trouble, and finally found the scponlyJust say the configuration process,If your system is CentOS, then use this configuration directly1.wget-chttp://nchc.dl.sourceforge.net/s...nly/scponly-4.8.
1. Create a userGroupadd SFTP2. add user and set as SFTP groupUseradd-g sftp-s/sbin/nologin-m sftp (/sbin/nologin for users who are not allowed to log in to the shell)3. Set User passwordpasswd SFTP4. Create a user directory. and set permissions.Cd/homemkdir SFTPChown root:sftp SFTPchmod 755 SFTP5. Modify the SSH confi
First, create a new user, and set the directory, prohibit Shell loginUseradd-m-d/home/wwwroot/licnlt-s/usr/sbin/nologin LICNLTNologin to confirm the location in advance, usually under/usr/sbin or/sbin (you can view the Nologin configuration of sshd in/etc/passwd)Second, set the user passwordpasswd LICNLTThird, set the user directory owner to rootChown root:root/home/wwwroot/licnlt/ #目录只能由root所有chmod 755/
Place a angular project under a domain name you don't want to put down the root directory to put it in a folder.
However, there is a problem that the file cannot be read
How do you configure this?
There's a layer of paths in the middle.
Reply content:
Place a angular project under a domain name you don't want to put
Write more verbose, if you are eager to find the answer directly to see the bold part of the ....
(PS: What is written here is all the content in the official document of the 2.5.2, the problem I encountered when I did it)
When you execute a mapreduce job locally, you encounter the problem of No such file or directory, follow the steps in the official documentation:
1. Formatting Namenode
Bin/hdfs Namenode-format
2. Start the Namenode and Datanod
From the previous article: PHP website (nginx, PHP-FPM, MySQL) User rights analysis, you can learn how Nginx and PHP-FPM users are working.There is a working scenario:1, the company has a CentOS server running several websites, each site is maintained by different teams, if you make sure that the FTP update files, do not update the wrong, not disorderly channeling. How to avoid the original to a site update files, the results uploaded to the B site, and so on chaos like;2, only with the use of C
Bought a 50 block a year of space, support PHP, but the root directory is set to die for www, that is to say index.html index.php must put here, but Laravel framework index.php must be put in public inside, how should I do?
Reply content:
Bought a 50 block a year of space, support PHP, but the root directory is se
= "/WHEREISBABA.WEBM" source src = ". mp4" type = "Video/mp4" ; br > Can't play! br ; Your browser is out and HTML5 video is not supported. br ; Internet Explorer does not support HTML5 video. !-- video ;
Finally, to a WEBM video and MP3, pure two-level domain name + media files, not related to HTML5.
Biochemical Crisis HTTP://BIG.09-29.COM/RESIDENT_EVIL_1.WEBM
Wang Feng-Goodbye youth Http://big.09-29.com/zaijian_qi
The purpose of deploying an app to the Tomcat root is to access the app directly through "Http://[ip]:[port." Instead of using the "http://[ip]:[port]/[appname" context path. Method One: (the simplest and most straightforward method) Delete All files under the original Webapps/root directory and copy all files and folders under the application to the ROOT folder. Method Two: Delete All files under the original Webapps/root
Tags: pac expand facilitates turtle Scala name content which multipleThere are multiple Emacs configurations, or the EMACS.D files are often copied from one machine to another. It's a little inconvenient to put. emacs.d files in the ~/directory every time.You can create a new ~/.emacs.d/init.el file, enter the contents, and specify the directory of the configurat
object in a programming language, that is, a model. I don't know why I put it under the app, and I think it's better to put it in a folder.
I think1-you think too much.2-A little blind worship
First, whether it's a tutorial or a document is usually just a way of demonstrating a usage, rather than requiring the user to copy the document.Second, sometimes the code is non-developer-meaningful. Anyway, I sti
Our previous ASP. NET project compiles the DLL file referenced by the project into the bin directory of the site, or the program runs without prompting for the associated DLL. It is particularly useful to develop plug-in modules with controller functionality by automatically loading DLL files from other directories (such as ~/plugins/bin) rather than copying them to the site Bin directory while the program
There are two scenarios
One
URL (r ' ^sitemap\.xml/$ ', Templateview.as_view (template_name= ' sitemap.xml ', c/xml ')),
Add a new Urlpattern to the urls.py and use Templateview to show
Two
directly to the Nginx processing, in the Nginx conf file to be processed by adding the static URL and path
Location /sitemap.xml { alias /path/to/static/sitemap.xml;}
The first scenario I did not practice, should also be OK, I use the second solutio
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.